<?php

public function action_availableSerieObjectTypes(){
                 
                $this->auto_render=false;
                $types = stats\Chart::getAvailableChartTypes();
 
                // translate
                foreach($types as $k=>$v){
                        $types[$k]=_($v);
                }
                 
                $this->request->response = json_encode(array('serie_object_types'=>$types));
        }